package cn.kgc.client;

import cn.kgc.base.entity.CartSkuInfo;
import cn.kgc.commons.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description:
 * @author: 石浩杰
 * @date: 2022-12-16 10:43
 */
@FeignClient(value = "mall-pms",path = "/pms/SkuInfo",fallback = CartSkuInfoFeignClientFallback.class)
public interface CartSkuInfoFeignClient {

    @GetMapping("/getCart")
    Result<CartSkuInfo> getCartSkuInfo(@RequestParam(name = "skuId") Long skuId);
}
